import java.util.ArrayList;
import java.util.List;

public class Interview {
    public static List<Character> list(String str,String str2){
        //遍历str字符串,查看是否有str1中的字符
        List<Character> list1 = new ArrayList<>();
        for (int i = 0; i < str.length(); i++) {
            //获取str中下标的字符 给arr
            char arr = str.charAt(i);
            //如果str2中不包含arr
            if(!str2.contains(arr+"")){
                // 就ArrayList中add方法插入arr的值
                list1.add(arr);
            }
        }
        return list1;
    }

    public static void main(String[] args) {
        List<List<Integer>> list = new ArrayList<>();
        list.add(new ArrayList<>());
        list.get(0).add(1);


        List<Integer> list1 = new ArrayList<>();
        list1.add(1);

        System.out.println(list1.get(0));
    }
    public static void main1(String[] args) {
     String str ="welcome to home";
     String str1 = "cone";
        List<Character> ret = list(str,str1);
        for (Character x:ret){
            System.out.print(x+" ");
        }
        System.out.println(ret);



    }

}
